<template>
     <div>
         <div class="home">
             <ul>
                 <li class="list_box" v-for="ins in msglist" :key="ins.id">
                     <div class="box_line">
                        <div class="box_top">
                             <div class="sun_top">
                                 ￥ <span>{{ins.score1|amountMin100(2)}}</span> <br>
                                 <span>满减劵</span>
                             </div>
                             <div class="sun_rig">
                               <!-- <p>梁品铺子通用零食抵用卷6元</p> -->
                               <p style="font-size:15px;">{{ins.couponName}}</p>
                               <!-- <div>有效期至: <span>{{ins.couponEndtime| formatDate('YYYY-MM-DD')}}</span> </div> -->
                             </div>
                        </div>
                        <div class="box_bom">
                            <span>满{{ins.reach1|amountMin100(2)}}可使用</span>
                            <router-link to @click.native="fxhas()">分享</router-link>
                             <router-link :to="{path:'me_juanbianji',query:{id:ins.id,miaoshu:ins.reach1,qixian:ins.couponEndtime,couponName:ins.couponName,money:ins.score1}}">编辑</router-link>
                        </div>
                     </div>
                 </li>
             </ul>
         </div>
         <div class="bombtn">
             <router-link :to="{path:'me_juanbianji'}">新增优惠劵</router-link>
         </div>
     </div>
</template>

<script>
export default {
   components:{
      
    },
      data() {
        return {
            companyid:'',
            msglist:[]
        }
      },
      mounted(){
          this.info()
      },
      methods:{
          fxhas(){
         layer.msg('暂未开通')
          },
             info(){
                 this.companyid=this.$route.query.companyid
                 console.log(this.companyid)
                  this.$http.get(this.APIURL_PREFIX+"/api/wap/staffCoupon").then((response) => {
                   console.log(response)
                   this.msglist=response.data.data
                   console.log(this.msglist)
                  })
             }
      }
}
</script>



<style scoped>
@import "../../assets/personal/css/me_favorable.css";
</style>
